package cn.com.taiji.oospub.wechat.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.github.dreamyoung.mprelation.EntityMapper;
import com.github.dreamyoung.mprelation.JoinColumn;
import com.github.dreamyoung.mprelation.ManyToOne;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2020-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SupplierFood implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @TableField("supplierId")
    private String supplierId;
    @TableField(exist = false)
    @EntityMapper
    @ManyToOne
    @JoinColumn(name = "supplierId",referencedColumnName = "ID")
    private Supplier supplier;

    @TableField("foodId")
    private String foodId;

    private String creator;

    private LocalDateTime createTime;

    private Double price;

    private String pricetype;

    private String isDelete;


}
